package com.chx.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author cp-月入过万
 * @Date 2025/5/28
 * 出库单
 */
@Data
public class StockOutOrderVo implements Serializable {
    @ApiModelProperty("出库单ID")
    private Long orderId;

    @ApiModelProperty("出库单编号")
    private String orderNumber;

    @ApiModelProperty("关联的订单类型")
    private Integer relatedOrderType;

    @ApiModelProperty("关联的订单ID")
    private Long relatedOrderId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户名称")
    private  String userName;

    @ApiModelProperty("出库单日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderDate;

    @ApiModelProperty("仓库名称")
    private String warehouse;

    @ApiModelProperty("出库单总金额")
    private Double totalAmount;

    @ApiModelProperty("出库单状态")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("出库项列表")
    private List<StockOutOrderDetailsVo> stockOutOrderDetailsVoList; // 入库项列表
}
